package com.app.logrecord.pojo.dto;

import com.app.core.mybatis.BasePageDto;
import com.app.logrecord.enums.LogOperate;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author qiangt
 * @version 1.0
 * @date 2023/12/5 11:11
 * @description: 操作记录
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class OperationPageDto extends BasePageDto {

    @NotNull(message = "业务id不能为空")
    @ApiModelProperty(name = "businessId", notes = "业务id")
    private Long businessId;

    @NotBlank(message = "模块不能为空")
    @ApiModelProperty(name = "module", notes = "模块")
    private String module;

    @ApiModelProperty(name = "type", notes = "操作类型;1-申请;2-审核;3-新增;4-更新;5-物理删除")
    private LogOperate type;

    @ApiModelProperty(name = "operatorName", notes = "操作人姓名")
    private String operatorName;

    @ApiModelProperty(name = "operationStartTime", notes = "操作开始时间")
    private Date operationStartTime;

    @ApiModelProperty(name = "operationEndTime", notes = "操作结束时间")
    private Date operationEndTime;
}
